from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'mysite.views.home', name='home'),
    # url(r'^mysite/', include('mysite.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url( r'^grappelli/', include('grappelli.urls')), 
    
    url(r'^admin/', include(admin.site.urls)),
	url(r'^index/$', 'blog.views.index'),
	url(r'^$', 'blog.views.index'),
	url(r'^about/$', 'blog.views.about', name = 'about'),
    url(r'^(?P<id>\d+)/$', 'blog.views.detail', name='detail'),
    url(r'^tag(?P<tag>\w+)/$', 'blog.views.search_tag', name = 'search_tag'),
    url(r'^archives/$', 'blog.views.archives', name = 'archives'),
    url(r'^ckeditor/', include('ckeditor.urls')),
)

from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns += staticfiles_urlpatterns()